package com.kun.gulimall.guliproduct.service;

import com.kun.gulimall.guliproduct.domain.PmsCategory;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kun.gulimall.guliproduct.query.CategoryQuery;
import com.kun.gulimall.guliproduct.query.CategorySort;
import com.kun.gulimall.guliproduct.response.CategoryTree;

import java.util.List;

public interface PmsCategoryService extends IService<PmsCategory> {

    List<CategoryTree> listWithTree();

    boolean removeMenuByIds(Long[] catIds);

    boolean saveCategory(CategoryQuery pmsCategory);

    boolean updateCategory(CategoryQuery pmsCategory);

    PmsCategory getCategory(Long id);

    boolean updateCategoryBatchById(List<CategorySort> categorySorts);
}
